package com.moarea.app.util;

import java.util.Random;

public class RandomUtil {

    public static String random(int len) {
        Random rd = new Random();
        String[] radmon = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < len; i++) {
            String s = radmon[rd.nextInt(10)];
            sb.append(s);
        }
        return sb.toString();
    }

}
